var express = require('express');
var router = express.Router();
const controCate=require('../controllers/cate.controller');



/* GET home page. */
router.post('/', controCate.create);//创建请求
router.put('/:id', controCate.update);//修改请求
router.get('/:id', controCate.get);//获取请求
router.delete('/:id', controCate.remove);//删除请求
router.post('/list/:type', controCate.list);//查询请求
/* 
http://localhost:3000/cate         post      创建
http://localhost:3000/cate/id       put       修改
http://localhost:3000/cate/id       get       获取
http://localhost:3000/cate/id       delete    删除
http://localhost:3000/cate/list     post      查询

*/
module.exports = router;
